package View;

import java.awt.Canvas;
import java.awt.Graphics;
import java.awt.Image;
import java.awt.Point;
import java.util.Observable;
import java.util.Observer;

import javax.swing.JComponent;

import main.LotusEngine;

@SuppressWarnings("serial")
public class GamePlayView extends JComponent implements Observer
{
	Canvas myCanvas;
    LotusEngine myEngine;
    
    public GamePlayView ()
    {
    	myCanvas = new Canvas();
    	this.add(myCanvas);
    }
    
    public void paintSprite(Image img, Point p)
    {
        Graphics g = getGraphics();
        g.drawImage(img, p.x, p.y, null);
    }

    @Override
    public void update (Observable o, Object arg)
    {
        // TODO Auto-generated method stub
        
    }

   
}
